
import { getQueryVariableobj } from '../../../../packages/shared-utils/src/index'
// 获取URL中携带的参数
let urlParams = getQueryVariableobj('')
let _lan = Number(urlParams.lang) || 2,
    _token = urlParams.token,
    _uid = urlParams.uid,
    _appVersion = Number(urlParams.appVersion),
    _langType: Record<number, string> = { 1: "en", 2: "ar", 3: "tr" },
    _actName=urlParams.actName || ''
const newlang = _lan ? Number(_lan) : 2
  // console.log(newlang, '...........newlang')

export default ({
    lang: newlang, //1英语 2阿语 3土语
    uid: _uid ||'',
    token: _token || '',
    langType: _langType,
    appVersion: Number(_appVersion)||0,
    ifRtl: newlang === 2 ? "rtl" : '',
    houZhui: '_'+_langType[Number(newlang)],
    actName: _actName || '',
    season_name: urlParams.season_name || 'arabian_flame_2025'
})

